import request from "@/utils/request";

// 查询预定会议列表
export function listMeeting(query) {
  return request({
    url: "/OnlineVideo/video/getMeeting",
    method: "get",
    params: query,
  });
}

// 查询预定会议详细
export function getMeeting(id) {
  return request({
    url: "/OnlineVideo/video/" + id,
    method: "get",
  });
}

// 新增预定会议
export function addMeeting(data) {
  return request({
    url: "/OnlineVideo/video",
    method: "post",
    data: data,
  });
}

// 修改预定会议
export function updateMeeting(data) {
  return request({
    url: "/OnlineVideo/video/editIntendedMeeting",
    method: "put",
    data: data,
  });
}

// 删除预定会议
export function delMeeting(id) {
  return request({
    url: "/OnlineVideo/IntendedMeeting/" + id,
    method: "delete",
  });
}
